﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011A1 RID: 4513
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetTurnFoodSwitchScRsp : IMessage<SetTurnFoodSwitchScRsp>, IMessage, IEquatable<SetTurnFoodSwitchScRsp>, IDeepCloneable<SetTurnFoodSwitchScRsp>, IBufferMessage
	{
		// Token: 0x1700391A RID: 14618
		// (get) Token: 0x0600CA06 RID: 51718 RVA: 0x0022073B File Offset: 0x0021E93B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetTurnFoodSwitchScRsp> Parser
		{
			get
			{
				return SetTurnFoodSwitchScRsp._parser;
			}
		}

		// Token: 0x1700391B RID: 14619
		// (get) Token: 0x0600CA07 RID: 51719 RVA: 0x00220742 File Offset: 0x0021E942
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetTurnFoodSwitchScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700391C RID: 14620
		// (get) Token: 0x0600CA08 RID: 51720 RVA: 0x00220754 File Offset: 0x0021E954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetTurnFoodSwitchScRsp.Descriptor;
			}
		}

		// Token: 0x0600CA09 RID: 51721 RVA: 0x0022075B File Offset: 0x0021E95B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetTurnFoodSwitchScRsp()
		{
		}

		// Token: 0x0600CA0A RID: 51722 RVA: 0x00220763 File Offset: 0x0021E963
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetTurnFoodSwitchScRsp(SetTurnFoodSwitchScRsp other) : this()
		{
			this.lOKHMBEONGM_ = other.lOKHMBEONGM_;
			this.retcode_ = other.retcode_;
			this.gKJMGGJJCFI_ = other.gKJMGGJJCFI_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CA0B RID: 51723 RVA: 0x002207A0 File Offset: 0x0021E9A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetTurnFoodSwitchScRsp Clone()
		{
			return new SetTurnFoodSwitchScRsp(this);
		}

		// Token: 0x1700391D RID: 14621
		// (get) Token: 0x0600CA0C RID: 51724 RVA: 0x002207A8 File Offset: 0x0021E9A8
		// (set) Token: 0x0600CA0D RID: 51725 RVA: 0x002207B0 File Offset: 0x0021E9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool LOKHMBEONGM
		{
			get
			{
				return this.lOKHMBEONGM_;
			}
			set
			{
				this.lOKHMBEONGM_ = value;
			}
		}

		// Token: 0x1700391E RID: 14622
		// (get) Token: 0x0600CA0E RID: 51726 RVA: 0x002207B9 File Offset: 0x0021E9B9
		// (set) Token: 0x0600CA0F RID: 51727 RVA: 0x002207C1 File Offset: 0x0021E9C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700391F RID: 14623
		// (get) Token: 0x0600CA10 RID: 51728 RVA: 0x002207CA File Offset: 0x0021E9CA
		// (set) Token: 0x0600CA11 RID: 51729 RVA: 0x002207D2 File Offset: 0x0021E9D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TurnFoodSwitch GKJMGGJJCFI
		{
			get
			{
				return this.gKJMGGJJCFI_;
			}
			set
			{
				this.gKJMGGJJCFI_ = value;
			}
		}

		// Token: 0x0600CA12 RID: 51730 RVA: 0x002207DB File Offset: 0x0021E9DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetTurnFoodSwitchScRsp);
		}

		// Token: 0x0600CA13 RID: 51731 RVA: 0x002207EC File Offset: 0x0021E9EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetTurnFoodSwitchScRsp other)
		{
			return other != null && (other == this || (this.LOKHMBEONGM == other.LOKHMBEONGM && this.Retcode == other.Retcode && this.GKJMGGJJCFI == other.GKJMGGJJCFI && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CA14 RID: 51732 RVA: 0x00220848 File Offset: 0x0021EA48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LOKHMBEONGM)
			{
				num ^= this.LOKHMBEONGM.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				num ^= this.GKJMGGJJCFI.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CA15 RID: 51733 RVA: 0x002208BF File Offset: 0x0021EABF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CA16 RID: 51734 RVA: 0x002208C7 File Offset: 0x0021EAC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CA17 RID: 51735 RVA: 0x002208D0 File Offset: 0x0021EAD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.LOKHMBEONGM)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.LOKHMBEONGM);
			}
			if (this.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				output.WriteRawTag(80);
				output.WriteEnum((int)this.GKJMGGJJCFI);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CA18 RID: 51736 RVA: 0x00220948 File Offset: 0x0021EB48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LOKHMBEONGM)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.GKJMGGJJCFI);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CA19 RID: 51737 RVA: 0x002209AC File Offset: 0x0021EBAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetTurnFoodSwitchScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LOKHMBEONGM)
			{
				this.LOKHMBEONGM = other.LOKHMBEONGM;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.GKJMGGJJCFI != TurnFoodSwitch.None)
			{
				this.GKJMGGJJCFI = other.GKJMGGJJCFI;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CA1A RID: 51738 RVA: 0x00220A10 File Offset: 0x0021EC10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CA1B RID: 51739 RVA: 0x00220A1C File Offset: 0x0021EC1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 80U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.GKJMGGJJCFI = (TurnFoodSwitch)input.ReadEnum();
					}
				}
				else
				{
					this.LOKHMBEONGM = input.ReadBool();
				}
			}
		}

		// Token: 0x04005117 RID: 20759
		private static readonly MessageParser<SetTurnFoodSwitchScRsp> _parser = new MessageParser<SetTurnFoodSwitchScRsp>(() => new SetTurnFoodSwitchScRsp());

		// Token: 0x04005118 RID: 20760
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005119 RID: 20761
		public const int LOKHMBEONGMFieldNumber = 4;

		// Token: 0x0400511A RID: 20762
		private bool lOKHMBEONGM_;

		// Token: 0x0400511B RID: 20763
		public const int RetcodeFieldNumber = 15;

		// Token: 0x0400511C RID: 20764
		private uint retcode_;

		// Token: 0x0400511D RID: 20765
		public const int GKJMGGJJCFIFieldNumber = 10;

		// Token: 0x0400511E RID: 20766
		private TurnFoodSwitch gKJMGGJJCFI_;
	}
}
